package com.specialized.passenger.remote;

import com.specialized.common.core.domain.Result;
import com.specialized.passenger.domain.Coupons;
import com.specialized.passenger.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @Author：djh
 * @Package：com.specialized.passenger.remote
 * @Project：Specialized-Cloud
 * @name：PassengerRemoteService
 * @Date：2024/7/21 10:30
 */
@FeignClient("specialized-passenger")
public interface PassengerRemoteService {
    /**
     * 新增个人优惠券
     */
    @PostMapping("coupons/insertCoupon")
    public Result add(@RequestBody Coupons coupons);

    /**
     * 修改用户积分
     */
    @PutMapping("User")
    public Result edit(@RequestBody User user);



    /**
     * 获取用户详细信息
     */
//    @RequiresPermissions("passenger:User:query")
    @GetMapping(value = "User/{userId}")
    public Result getInfo(@PathVariable("userId") Long userId);
}
